package com.yin.fallback;

import org.springframework.stereotype.Component;

import com.yin.dao.UserRepository;
import com.yin.entity.UserEntity;

/**
*@author LSY
*Time: 2019年1月10日下午2:30:39
*
*
*/
@Component
public class UserFallBack implements UserRepository{

	@Override
	public UserEntity findUserById(Long id) {
		UserEntity user = new UserEntity();
		user.setUserName("feign");
		return user;
	}

}
